#ifndef COMPILER_ONLINE

#include "header.cpp"

#endif

void Test1()
{
    // 通过定义临时对象，来完成方法的调用
    std::vector<int> v = {1, 2, 3, 4, 5, 6};
    int ret = Solution().Max(v);
    if (ret == 6)
    {
        std::cout << "Test 1 ... OK!" << std::endl;
    }
    else
    {
        std::cout << "Test 1 ... Failed!" << std::endl;
    }
}

void Test2()
{
    std::vector<int> v = {0, 1, 2, 3, -1, -2, 10};
    int ret = Solution().Max(v);
    if (ret == 10)
    {
        std::cout << "Test 2 ... OK!" << std::endl;
    }
    else
    {
        std::cout << "Test 2 ... Failed!" << std::endl;
    }
}

int main()
{
    Test1();
    Test2();
    return 0;
}